

import { requestClient } from '#/api/request';


// 运动列表
export async function $getsportlist(data: any) {
  return requestClient.get<any>('app/sport', { params: data });
}

// 创建运动
export async function $createsport(data: any) {
  return requestClient.post<any>('app/sport', data);
}

// 更新运动
export async function $updatesport(data: any, id: any) {
  return requestClient.put<any>(`app/sport/${id}`, data);
}

// 删除运动
export async function $deletesport(data: any, id: any) {
  return requestClient.delete<any>(`app/sport/${id}`, data);
}

// 获取运动详情
export async function $sportdesc(data: any, id: any) {
  return requestClient.get<any>(`app/sport/${id}`, { params: data });
}
